/**
 * UI模块
 */
class UIModule {
	private static _instance: UIModule=null;
    public static get instance(): UIModule {
        if (UIModule._instance == null)
            UIModule._instance = new UIModule();
        return UIModule._instance;
    }
	public constructor() {
	}
	private view:UIView;
	//初始化
	public init(){
		let layer=LayerControl.ui_layer;
		this.view=new UIView();
		layer.addChild(this.view);

		this.addEvent();
	}
	//添加事件
	private addEvent():void{
		this.view.addEvent();
	}
	//移除事件
	private removeEvent():void{
		this.view.removeEvent();
	}
}